apiready = function() {
    init()
}
function init() {
  if(api.pageParam.title){
    $api.text($api.dom("#title"),api.pageParam.title)
  }
  api.openFrame({
      name: 'webview',
      url: 'https://t.gxmp.henghi.com/api/chat/index?p1='+JSON.stringify(api.pageParam.p1)+'&p2='+JSON.stringify(api.pageParam.p2),
      useWKWebView:true,
      hScrollBarEnabled:false,
      rect: {
          x:0,
          y:60,
          w: api.winWidth,
          h: api.winHeight-60
      }
  });

}
function back() {
  api.sendEvent({
      name: 'checkAppVersion'
  });
  api.closeWin();
}
